package factory;

import factory.abstract_factory.AbstractFactory;
import factory.abstract_products.CPU;
import factory.abstract_products.RAM;
import factory.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        AbstractFactory factory = (AbstractFactory) XMLUtil.getBean();
        CPU cpu = factory.createCPU();
        RAM ram = factory.createRAM();
        cpu.beCreated();
        ram.beCreated();
    }
}
